QT -= gui

TEMPLATE = lib
DEFINES += HYSCRIPT_LIBRARY

CONFIG += c++11

msvc{
    QMAKE_CFLAGS += /utf-8
    QMAKE_CXXFLAGS += /utf-8
}

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
DEFINES -= UNICODE _UNICODE
# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    alg/alg.cpp \
    alg/external/des.c \
    alg/external/sm3.c \
    alg/external/sm4.c \
    hyScript.cpp \
    script/baseOp.cpp \
    script/cInit.cpp \
    script/cInit_hy188d.cpp \
    script/cardReaderDev.cpp \
    script/command.cpp \
    script/hex_bin.cpp \
    script/para.cpp \
    script/script.cpp \
    script/scriptFile.cpp \
    utils/hyMath.cpp \
    utils/hyTool.cpp

HEADERS += \
    alg/alg.h \
    alg/external/des.h \
    alg/external/sm3.h \
    alg/external/sm4.h \
    hyScript_global.h \
    hyScript.h \
    script/baseOp.h \
    script/cInit.h \
    script/cInit_hy188d.h \
    script/cardReaderDev.h \
    script/command.h \
    script/hex_bin.h \
    script/para.h \
    script/script.h \
    script/scriptFile.h \
    utils/hyMath.h \
    utils/hyTool.h

INCLUDEPATH += $$PWD/alg/external
DEPENDPATH += $$PWD/alg/external
INCLUDEPATH += $$PWD/alg
DEPENDPATH += $$PWD/alg
INCLUDEPATH += $$PWD/utils
DEPENDPATH += $$PWD/utils
INCLUDEPATH += $$PWD/script
DEPENDPATH += $$PWD/script

# Default rules for deployment.
unix {
    target.path = /usr/lib
}
!isEmpty(target.path): INSTALLS += target
